import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";


// 导入小兔鲜UI组件库
import ErabbitUI from 'erabbit-ui'
import "erabbit-ui/packages/theme/index.less";

// 引入公用样式
import "@/styles/index.less";


// Vue3如何挂载一个全局组件
// 挂载开始
// 导入组件
import GoodsItem from '@/components/goods-item.vue'

const app = createApp(App)
// 挂载全局组件
app.component(GoodsItem.name, GoodsItem)
// 挂载结束


// createApp创建一个vue应用,使用仓库vuex,使用路由router,挂载在#app容器
app.use(store).use(router).use(ErabbitUI).mount("#app");


